package com.mall.product.feign;

import com.mall.common.utils.Result;
import com.mall.product.dto.SeckillSkuRedisDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 谢君臣
 * @Date: 2022/9/19-19:01
 * @version: 1.0
 * @function:
 */
@FeignClient("seckillServer")
public interface SeckillFeignClient {
    @GetMapping("/seckill/session/info/{skuId}")
    Result<SeckillSkuRedisDTO> getSkuSeckillInfo(@PathVariable("skuId")Long skuId);
}
